package com.shiwaixiangcun.monitor.domain;


import com.rabbit.spring.data.domain.BaseEntity;
import org.hibernate.annotations.DynamicInsert;
import org.hibernate.annotations.DynamicUpdate;

import javax.persistence.Entity;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

/**
 * 工单默认分配设置实体
 */
@Entity
@Table(name = "ms_work_order_quality_allot_rule")
@DynamicUpdate
@DynamicInsert
public class WorkOrderQualityAllotRule extends BaseEntity<Long> {

    @ManyToOne
    @JoinColumn(name = "category_id")
    private WorkOrderCategory category;

    @ManyToOne
    @JoinColumn(name = "user_id")
    private User user;

    public WorkOrderQualityAllotRule() {
    }

    public WorkOrderCategory getCategory() {
        return category;
    }

    public void setCategory(WorkOrderCategory category) {
        this.category = category;
    }

    public User getUser() {
        return user;
    }

    public void setUser(User user) {
        this.user = user;
    }
}
